package com.lvkerry.orderfood.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author Kerry
 */

@Controller
@RequestMapping("/admin")
public class AdminController {

    @GetMapping(value = {"/", "/index", "/admin"})
    public String admin() {
        return "admin";
    }

    @GetMapping("/personManager")
    public String personManager() {
        return "personManager";
    }

    @ResponseBody
    @PostMapping("/testAdmin")
    public String testAdmin() {
        return "testAdmin";
    }

}
